<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2022-12-05 18:49:29
 * @Last Modified time: 2022-12-05 19:46:16
 */
namespace addon\qiniu\event;

use addon\qiniu\services\QiniuService;

/**
 * 云上传方式
 */
class Put
{
    /**
     */
    public function handle($param)
    {

        if(sysconf('oss_type') !== 'qiniu'){
            return [];
        }
        $qiniu = new QiniuService();
        $result = $qiniu->putFile($param);
        return $result;
    }
}
